/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package warehouse.sorts;

import entity.Warehouse;
import java.util.Comparator;

/**
 *
 * @author Tkach Andrii
 */
public class SortByAddress implements Comparator<Warehouse> {

    @Override
    public int compare(Warehouse o1, Warehouse o2) {
        return o1.getAddress().compareTo(o2.getAddress());
    }
}
